//
//  WBComposeTypeButton.swift
//  simpleWeibo
//
//  Created by sunmumu on 2019/3/26.
//  Copyright © 2019 孙林. All rights reserved.
//

import UIKit

class WBComposeTypeButton: UIControl {

    @IBOutlet weak var imageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    //点击按钮 要展现的控制器类名
    var clsName : NSString?
    
    
    class func composeTypeButton(imageName:String, title:String) -> (WBComposeTypeButton) {
        let nib = UINib.init(nibName: "WBComposeTypeButton", bundle: nil)
        let btn = nib.instantiate(withOwner: nil, options: nil)[0] as! WBComposeTypeButton
        btn.imageView.image = UIImage.init(named: imageName)
        btn.titleLabel.text = title
        
        return btn
    }
    
}
